<template>
<div>
    <ul class="mui-table-view">
		
				<li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<img class="mui-media-object mui-pull-left" src="https://avatars3.githubusercontent.com/u/38521787?s=460&v=4">
						<div class="mui-media-body">
							<h1>Yvonne</h1>
							<p class='mui-ellipsis'>
                                <span>发表时间：2019-3-12 08:34:15</span>
                                <router-link to="/home/newslist/info">查看原文</router-link>
                            
                            </p>
						</div>
					</a>
				</li>
                <li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<img class="mui-media-object mui-pull-left" src="https://avatars3.githubusercontent.com/u/38521787?s=460&v=4">
						<div class="mui-media-body">
							<h1>Yvonne</h1>
							<p class='mui-ellipsis'>
                                <span>发表时间：2019-3-12 08:34:15</span>
                               <router-link to="/home/newslist/info">查看原文</router-link>
                            
                            </p>
						</div>
					</a>
				</li>
                <li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<img class="mui-media-object mui-pull-left" src="https://avatars3.githubusercontent.com/u/38521787?s=460&v=4">
						<div class="mui-media-body">
							<h1>Yvonne</h1>
							<p class='mui-ellipsis'>
                                <span>发表时间：2019-3-12 08:34:15</span>
                                <router-link to="/home/newslist/info">查看原文</router-link>
                            
                            </p>
						</div>
					</a>
				</li>
                <li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<img class="mui-media-object mui-pull-left" src="https://avatars3.githubusercontent.com/u/38521787?s=460&v=4">
						<div class="mui-media-body">
							<h1>Yvonne</h1>
							<p class='mui-ellipsis'>
                                <span>发表时间：2019-3-12 08:34:15</span>
                                <router-link to="/home/newslist/info">查看原文</router-link>
                            
                            </p>
						</div>
					</a>
				</li>
                <li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<img class="mui-media-object mui-pull-left" src="https://avatars3.githubusercontent.com/u/38521787?s=460&v=4">
						<div class="mui-media-body">
							<h1>Yvonne</h1>
							<p class='mui-ellipsis'>
                                <span>发表时间：2019-3-12 08:34:15</span>
                                <router-link to="/home/newslist/info">查看原文</router-link>
                            
                            </p>
						</div>
					</a>
				</li>
                
                <li class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<img class="mui-media-object mui-pull-left" src="https://avatars3.githubusercontent.com/u/38521787?s=460&v=4">
						<div class="mui-media-body">
							<h1>Yvonne</h1>
							<p class='mui-ellipsis'>
                                <span>发表时间：2019-3-12 08:34:15</span>
                                <router-link to="/home/newslist/info">查看原文</router-link>
                            
                            </p>
						</div>
					</a>
				</li>
			</ul>
</div>
</template>

<script>
export default{
    data(){
        return {
            newslist:[]
        }
    },
    created(){
        this.getNewsList();
    },
    methods:{
        getNewsList(){
            this.$http.get('api/getnewslist').then(result=>{
                if(result.body.status===0){
                    this.newslist=result.body.message

                }else{
                    Tosat('获取列表失败')
                }
            })
        }

    }
}
</script>

<style lang="scss" scoped>
.mui-table-view li h1{
    font-size:14px;
}
.mui-ellipsis{
    font-size:12px;
    color:steelblue;
    display: flex;
    justify-content: space-between;
}

</style>